.class Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;
.super Ljava/lang/Object;
.source "FootprintDetailEditActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

.field final synthetic val$activityIntent:Landroid/content/Intent;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/content/Intent;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 286
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iput-object p2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->val$activityIntent:Landroid/content/Intent;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .prologue
    const/16 v3, 0x78

    .line 287
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 288
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const/4 v5, 0x1

    move v4, v3

    invoke-virtual/range {v0 .. v5}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledImage(Ljava/io/File;Landroid/content/Context;IIZ)Landroid/graphics/Bitmap;

    move-result-object v8

    .line 291
    .local v8, drawable:Landroid/graphics/Bitmap;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v1, v8}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 293
    .end local v8           #drawable:Landroid/graphics/Bitmap;
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->val$activityIntent:Landroid/content/Intent;

    #calls: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isSetasFootprints(Landroid/content/Intent;)Z
    invoke-static {v0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/content/Intent;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 294
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    if-lez v0, :cond_1

    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    if-lez v0, :cond_1

    .line 295
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 298
    :cond_1
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const v2, 0x7f0c0031

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateDate:Landroid/widget/TextView;
    invoke-static {v1, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$502(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/widget/TextView;)Landroid/widget/TextView;

    .line 299
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    const v2, 0x7f0c0032

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    #setter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateTime:Landroid/widget/TextView;
    invoke-static {v1, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$602(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/widget/TextView;)Landroid/widget/TextView;

    .line 300
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/text/format/DateFormat;->getDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v6

    .line 301
    .local v6, df:Ljava/text/DateFormat;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateDate:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$500(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/util/Date;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iget-wide v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v6, v1}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 302
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/text/format/DateFormat;->getTimeFormat(Landroid/content/Context;)Ljava/text/DateFormat;

    move-result-object v7

    .line 303
    .local v7, df_time:Ljava/text/DateFormat;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateTime:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/util/Date;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iget-wide v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    invoke-direct {v1, v2, v3}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v7, v1}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 304
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textNote:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$700(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 305
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    invoke-virtual {v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->populateFootprintToView()V

    .line 306
    return-void
.end method
